/**
 * 
 */
package pluginUtils;

/**
 * @author Francesco
 *
 */
public class Vector2D extends Point2D {

	/**
	 * @param x
	 * @param y
	 */
	public static final Vector2D ZERO=new Vector2D(0,0); 
	
	public Vector2D(double x, double y) {
		super(x, y);
	
	}
	public static Vector2D add(Vector2D v1,Vector2D v2){
			return new Vector2D(v1.x+v2.x,v1.y+v2.y); 
	}
	
	public static Vector2D mul(double a,Vector2D v){
			return new Vector2D(a*v.x,a*v.y); 
	}
}
